<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<%--<!DOCTYPE html>--%>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="x-ua-compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width,initial-scale=1">

        <title>文字识别</title>

        <link href="css/bootstrap.min.css" rel="stylesheet">
        <link rel="stylesheet" type="text/css" href="css/ocr.css">
        <link rel="stylesheet" type="text/css" href="css/common.css">

        <script src="js/jquery-3.2.1.min.js"></script>
        <script src="js/bootstrap.min.js"></script>

        <!--导入布局js，共享header和footer-->
        <script type="text/javascript" src="js/include.js"></script>


    </head>
    <body>
        <!--        1.页眉-->
        <!--引入头部-->
        <div id="header"></div>

        <!--        2.主体-->
        <div class="container">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">文字识别</h3>
                </div>
                <div class="panel-body">
                    <div class="col-md-6 imgdiv imgdivvv">
                        <h4 style="color: red">注：上传图片格式只支持jpg和png,且不大于1M</h4>
                        <img  src="${o.imgPah}" >
<%--                        <img  src="files/aaa.png" style=" height: 700px;width: 500px;">--%>
<%--                        <img  src="files/bbb" class="imgword">--%>
                        <span id="errorMsg"></span>
                    </div>

                    <div class="col-md-6 resd">
                        <h4 style="color: red">识别结果:</h4>
                        <p id="ocrWord">${o.msg}</p>
                    </div>

                    <div class="col-md-12 mdb" >
                        <form action="orcServlet" method="post" enctype="multipart/form-data">
                            <div class="col-md-3 mdbdiv">
                                <input type="file" id="pic" name="pic" value="上传图片">

                            </div>
                            <div class="col-md-3 mdbdiv" >

                                <input type="submit" id="pic-sub" value="提交">
                            </div>
                            <div class="col-md-3 mdbdiv" style="padding: 0px 10px 10px 10px">

                                <a href="ocr.jsp"> <input type="button" value="返回"></a>
                            </div>

                        </form>


                    </div>


                </div>
            </div>
        </div>

        <script src="js/buttonclass.js"></script>
        <
        <!--        3.页脚-->
        <!--导入底部-->
        <div id="footer"></div>

    </body>
</html>